<template>
  <div class=" header" >
    <div class="header-left">
      <span class="iconfont">&#xeb99;</span>
    </div>
    <div class="header-center">
      <span class="iconfont">&#xeb9c;</span>
     输入景点内容
    </div>
    <router-link to="/city">
    <div class="header-right">
      <span  class="iconfont right-icon">&#xe6aa;</span>
      {{this.city}}</div>
    </router-link>

  </div>
</template>

<script>
  export default {
    name: 'Header',
    props:{
      city:String
    }
  }
</script>

<style lang="stylus" scoped>
  @import "../../../assets/styles/varibles.styl"
  .header
    text-align: center
    background: $bgColor
    display: flex
    line-height: .86rem
    color: white
    .header-left
      color: white
      width: .64rem
      float: left
      line-height: .86rem
    .header-center
      color: #ccc
      flex: 1
      height: .64rem
      line-height: .64rem
      background-color: #fff
      border-radius: .1rem
      margin-top: .12rem
      margin-left: .2rem

    .header-right
      width: 1.26rem
      float: right
      line-height: .86rem
      color: white
</style>
